package cn.stylefeng.guns.modular.business.pojo;

import cn.stylefeng.roses.kernel.rule.pojo.request.BaseRequest;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 用户管理请求
 *
 * @author 施律名
 * @date 2022-03-10 17:08:34
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class WxPayRequest extends BaseRequest {

    /**
     * 订单号
     */
    @NotNull(message = "订单号不能为空", groups = {edit.class, delete.class, detail.class})
    private Long wxPayId;

    /**
     * 订单用户微信openid
     */
    @NotBlank(message = "订单用户微信openid不能为空", groups = {add.class, edit.class})
    private String wxPayOpenId;

    /**
     * 订单状态：1-完成，2-失效
     */
    @NotNull(message = "订单状态不能为空", groups = {add.class, edit.class})
    private Integer wxPayState;

    /**
     * 订单类型（1充值/2退款）
     */
    @NotNull(message = "订单类型不能为空", groups = {add.class, edit.class})
    private Integer wxPayType;

    /**
     * 订单金额
     */
    private BigDecimal wxPaySum;



}